<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@include file="/common.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/common_meta.jsp"%>
<%@include file="/amd_common_meta.jsp"%>
<title>AMD プロフィール(<c:out value="${f:h(profile.myName)}" />)</title>
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
	//<!-- [CDATA[         
	google.load('search', '1', {"language" : "ja"});

	function OnLoad() {
		// Create a search control
		var searchControl = new google.search.SearchControl();
		
		// create a drawOptions object
		var drawOptions = new google.search.DrawOptions();

		// tell the searcher to draw itself in tabbed mode
		drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_LINER);

		var options = new google.search.SearcherOptions();
		options.setExpandMode(google.search.SearchControl.EXPAND_MODE_CLOSED);
		//searchControl.addSearcher(new google.search.WebSearch(), options);
		
		// Add in a full set of searchers
		//var localSearch = new google.search.LocalSearch();
		//searchControl.addSearcher(localSearch);
		//searchControl.addSearcher(new google.search.WebSearch());
		//searchControl.addSearcher(new google.search.VideoSearch());
		searchControl.addSearcher(new google.search.ImageSearch(), options);
		searchControl.addSearcher(new google.search.BookSearch(), options);
		searchControl.addSearcher(new google.search.BlogSearch(), options);
		//searchControl.addSearcher(new google.search.NewsSearch());
		//searchControl.addSearcher(new google.search.ImageSearch());
		//searchControl.addSearcher(new google.search.PatentSearch());

		// Set the Local Search center point
		//localSearch.setCenterPoint("Tokyo");

		// tell the searcher to draw itself and tell it where to attach
		searchControl.draw(document.getElementById("searchcontrol"));

		// execute an inital search
		searchControl.execute("<c:out value="${f:h(profile.myName)}" />");
	}
	google.setOnLoadCallback(OnLoad);

	//]]-->
</script>
</head>
<body>
	<c:set var="showUrl" value="/info/show/${f:h(profile.key)}" />
	<div data-role="page" data-fullscreen=“true”>
		<div data-role="header">
			<h1>プロフィール (<c:out value="${f:h(profile.myName)}" />)</h1>
			<a href="javascript:void(0)" onclick="window.close();return false;"
				data-role="button" data-icon="delete" data-iconpos="notext"
				class="ui-btn-right jqm-home" rel="external"></a>
		</div>
		<div data-role="content">
			<br /> <br /> <br /> <br /> <img src="${f:url(showUrl)}" width="280"
				height="340" /><br /> 名前：
			<c:out value="${f:h(profile.myName)}" />
			<br /> 所属：
			<c:out value="${f:h(profile.group)}"/>
			<br /> チーム：
			<c:out value="${f:h(profile.team)}"/>
			<c:if test="${!empty profile.nicName}">
			<br /> ニックネーム：
			<c:out value="${f:h(profile.nicName)}" />
			</c:if>
			<c:if test="${!empty profile.comeFrom}">
			<br /> 出身：
			<c:out value="${f:h(profile.comeFrom)}" />
			</c:if>
			<c:if test="${0 != profile.age}">
			<br /> 年齢：
			<c:out value="${f:h(profile.age)}" />
			</c:if>
			<c:if test="${!empty profile.bloodType}">
			<br /> 血液型：
			<c:out value="${f:h(profile.bloodType)}" />
			</c:if>
			<c:if test="${0 != profile.bust}">
			<br /> スリーサイズ：B(
			<c:out value="${f:h(profile.bust)}" />
			),W(
			<c:out value="${f:h(profile.waist)}" />
			),H(
			<c:out value="${f:h(profile.hip)}" />
			)
			</c:if>
			<br /> <br />
			<div data-inline=“true”>
				<c:if test="${!empty profile.wikiUrl}">
					<a href="${profile.wikiUrl}" target="_blank" data-role="button"
						data-inline=“true” style="font-size: 10px;">Wikiを確認</a>
				</c:if>
				<c:if test="${!empty profile.ekeUrl}">
					<a href="${profile.ekeUrl}" target="_blank" data-role="button"
						data-inline=“true” style="font-size: 10px;">エケを確認</a>
				</c:if>
			</div>
			<!-- Google News Element Code -->
			<iframe frameborder=0 marginwidth=0 marginheight=0 border=0
				style="border: 0; margin: 0; width: 300px; height: 250px;"
				src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?rsz=small&format=300x250&ned=jp&hl=ja&q=${f:h(profile.myName)}&element=true"
				scrolling="no" allowtransparency="true"></iframe>
			<div id="searchcontrol">Loading</div><br/>

		</div>
		<div data-role="footer">@AMD</div>
	</div>
</body>
</html>
